package com.mapper;

import java.util.List;

import com.bean.User;

public interface UserMapper {
	int deleteByPrimaryKey(Integer userId);

	int insert(User record);

	int insertSelective(User record);

	User selectByPrimaryKey(Integer userId);

	List<User> selectAll();

	List<User> selectCookAll();

	List<User> selectSupplierAll();
	/**
	 * 根据用户名查询其他user表的信息 不包含密码
	 * 
	 * @param user
	 * @return
	 */
	User login(User user);

	int deleteUser(Integer userId);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);
	int updateByPrimaryKeyNoPassword(User record);
	
}
